package com.ruoyi.patrol.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备信息对象 pt_equipment
 *
 * @author linan
 * @date 2024-02-16
 */
@Data
public class PtEquipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String equipmentName;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String equipmentType;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String equipmentCode;

    /** 设备厂商 */
    @Excel(name = "设备厂商")
    private String equipmentFirm;

    /** 项目id */
    @Excel(name = "项目id")
    private Long projectId;

    /** 片区id */
    @Excel(name = "片区id")
    private Long areaId;

    /** 定位 */
    @Excel(name = "定位")
    private String position;

    /** 业主单位 */
    @Excel(name = "业主单位")
    private String ownerUnit;

    /** 业主负责人 */
    @Excel(name = "业主负责人")
    private String owner;

    /** 业主电话 */
    @Excel(name = "业主电话")
    private String ownerPhone;

    /** 合同时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contractDate;

    /** 合同到期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contractEndDate;

    /** 单位地址 */
    @Excel(name = "单位地址")
    private String unitArea;

    /** 项目经理 */
    @Excel(name = "项目经理")
    private String projectManager;

    /** 项目经理电话 */
    @Excel(name = "项目经理电话")
    private String projectManagerPhone;

    /** 维修人员 */
    @Excel(name = "维修人员")
    private String repairPerson;

    /** 维修人员电话 */
    @Excel(name = "维修人员电话")
    private String repairPersonPhone;

    /** 图片 */
//    @Excel(name = "图片")
    private String img;

    /** 附件 */
//    @Excel(name = "图片")
    private String file;

    private Long deptId;
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("equipmentName", getEquipmentName())
                .append("equipmentType", getEquipmentType())
                .append("equipmentCode", getEquipmentCode())
                .append("equipmentFirm", getEquipmentFirm())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("projectId", getProjectId())
                .append("areaId", getAreaId())
                .append("position", getPosition())
                .append("ownerUnit", getOwnerUnit())
                .append("owner", getOwner())
                .append("ownerPhone", getOwnerPhone())
                .append("contractDate", getContractDate())
                .append("contractEndDate", getContractEndDate())
                .append("unitArea", getUnitArea())
                .append("projectManager", getProjectManager())
                .append("projectManagerPhone", getProjectManagerPhone())
                .append("repairPerson", getRepairPerson())
                .append("repairPersonPhone", getRepairPersonPhone())
                .append("remark", getRemark())
                .append("img", getImg())
                .toString();
    }
}
